import { Component } from "react"; 
import { Link, Outlet } from "react-router-dom";
class Home extends Component{
    render(){
        return <div>
            home
            <Link to="page1">to page1</Link>
            <Link to="page2">to page2</Link>
            {/* 子路由渲染地址 */}
            <Outlet></Outlet>
        </div>
    }
}

export default Home;